<!DOCTYPE html>
<html>
	<head>
		
		<title></title>
	</head>
	<body>
		<script>
        var arr=[1,34,"d",3,4,"im"];
		var n=arr.length;
		for(var i=n-1;i>=0;i--)
		{
			document.write(arr[i]+",");
		}
			
		</script>
	</body>
</html>